cmake_minimum_required(VERSION 3.10)
project(DynamicLibExample)

# 设置 C 标准
set(CMAKE_C_STANDARD 11)

# 添加子目录
add_subdirectory(mathlib)

add_executable(main main.c)

# 链接 mathlib 动态库
target_link_libraries(main PRIVATE math)

